import org.junit.Test;

import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.function.Function;

/**
 * @author mucd
 * 2021年06月07日  上午 08:30
 */

public class Test1 implements Function {
    @Test
    public void test(){
        System.out.println("asd");
    }

    public static void main(String[] args) {
        System.out.println(getAllFile("web/img/"));
    }
    public static List<File> getAllFile(String path){
        List<File> files = new ArrayList<>();
        File file = new File(path);
        System.out.println(file.exists());
        System.out.println(file.isDirectory());
        if (file.exists() && file.isDirectory()){

        }
        return files;
    }

    @Override
    public Object apply(Object o) {
        return null;
    }

    @Override
    public Function andThen(Function after) {
        return Function.super.andThen(after);
    }

    @Override
    public Function compose(Function before) {
        return Function.super.compose(before);
    }
}